package com.tcsl.exercise.demo.constants;

public enum ResultEnum {
    NAME_UNIQUE("00001","与已存在品项名称重复"),ID_UNIQUE("00002","与已存在id重复"),SUCCESS("00000","执行成功"),
    FAIL("00003","其他错误，请相关人员排查");
    private String code;
    private String msg;

    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
